ucb: FTP UCP: report CURLE_URL_MALFORMAT as IllegalIdentifierException
authorMichael Stahl <michael.stahl@allotropia.de>
Wed, 26 Oct 2022 12:58:09 +0000 (14:58 +0200)
committerRene Engelhard <rene@debian.org>
Wed, 26 Oct 2022 19:47:10 +0000 (20:47 +0100)
commit333703722764153fe44202a172d52fde63950685
treebf194501b0b850775abee75cd5ed6666451886d1
parent5cea1c1daf3fba24f3048b8dea2fbf5b14f65b95
ucb: FTP UCP: report CURLE_URL_MALFORMAT as IllegalIdentifierException

With curl 7.86, the test JunitTest_ucb_complex starts to fail:

.ftp://noname:nopasswd@*nohost.invalid
now executing open
com.sun.star.ucb.InteractiveAugmentedIOException:
at com.sun.proxy.$Proxy15.execute(Unknown Source)
at complex.ucb.UCB.executeCommand(UCB.java:63)
at complex.ucb.UCB.checkWrongFtpConnection(UCB.java:119)

because curl_easy_perform() now returns CURLE_URL_MALFORMAT where
previously it was CURLE_COULDNT_RESOLVE_HOST.

Map this to an exception the test expects.

Change-Id: Ifdb672946726ddb4cb4d9426b7e70eefac63f040
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141877
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Gbp-Pq: Name curl-7.86.diff
ucb/source/ucp/ftp/ftpcontent.cxx